﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="VerConsultaMedica.aspx.cs" MasterPageFile="~/mpPagina.master" Inherits="VerConsultaMedica" %>


<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" runat="Server">
    <link rel="stylesheet" href="/css/botonPAW.css" />
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="cphAcciones" runat="Server">
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="cphTitulo" runat="Server">
    <h3>Ver Consultas M&eacute;dicas</h3>
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="cphPrincipal" runat="Server">
    <link rel="stylesheet" href="//code.jquery.com/ui/1.11.2/themes/smoothness/jquery-ui.css">
    <script src="/js/jquery-1.10.2.js"></script>
    <script src="/js/jquery-ui.js"></script>
    <script src="/js/ConsultaMedica.js"></script>
    <script src="/js/jquery.ui.datepicker-es.js"></script>
    <script src="/js/jquery.timepicker.min.js"></script>
    <link rel="stylesheet" href="css/jquery.timepicker.css" />
    <link rel="stylesheet" href="css/Grid.css" />
    <div id="VerConsulta" runat="server">
        <br />
        <asp:GridView ID="ConsultasGridView" runat="server" AutoGenerateColumns="False"
            EnableModelValidation="True" GridLines="None" EmptyDataText="No se encontraron solicitudes de consulta m&eacute;dica"
            OnRowDataBound="ConsultasGridView_RowDataBound" OnRowCommand="ConsultasGridView_RowCommand" OnRowDeleting="ConsultasGridView_RowDeleting" DataKeyNames="consultaID">
            <Columns>
                <asp:TemplateField HeaderText="N&uacute;mero">
                    <ItemTemplate>
                        <asp:HyperLink ID="ConsultaHyperLink" runat="server"></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Animal" >
                    <ItemTemplate>
                        <asp:Label ID="AnimalLabel" runat="server"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Medico que atiende">
                    <ItemTemplate>
                        <asp:Label ID="MedicoLabel" runat="server"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="fechaHora" HeaderText="Fecha y hora" DataFormatString="{0:dd-MMM-yyyy h:mm tt}" />
                <asp:BoundField DataField="detalle" HeaderText="Detalle" />
                   <asp:TemplateField>
                    <ItemTemplate>
                        <asp:LinkButton ID="EliminarConsultaButton" runat="server" Text="Eliminar" CommandName="delete" OnClientClick="javascript:return confirm('Va a eliminar la consulta. ¿Está seguro que desea continuar?');"></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <SelectedRowStyle CssClass="gridSelectedRow" />
            <RowStyle CssClass="gridRow" />
            <AlternatingRowStyle CssClass="gridAlternatingRow" />
            <HeaderStyle CssClass="gridHeader" />
            <PagerStyle CssClass="gridPager" />
            <FooterStyle CssClass="gridFooter" />
        </asp:GridView>
    </div>
</asp:Content>

